/****************
 *@description:
 *@author: Xhd
 *@API:
 *@date: 2024-01-16 13:51:33
 *@version: V1.0.0
*************************************************************************/

import React from 'react';

//新增抽奖活动
export async function apiAddLotteryDrawTurntable(params) {
  return await React.$postJson("/market/api/b/lotteryDrawTurntable/addLotteryDrawTurntable", params)
}
// 添加实物奖品时获取哈奇马电商大库ID
export async function apiGetStockLibraryManageId(params) {
  return await React.$get("/market/api/b/lotteryDrawTurntable/getStockLibraryManageId", params)
}
// 幸运大轮盘分页
export async function apiLotteryDrawTurntablePage(params) {
  return await React.$postJson("/market/api/b/lotteryDrawTurntable/findLotteryDrawTurntablePage", params)
}
// 开关幸运大转盘
export async function apiSwitchLotteryDrawTurntable(params) {
  return await React.$post("/market/api/b/lotteryDrawTurntable/switchLotteryDrawTurntable",params)
}
// 查看幸运转盘详情
export async function apiGetLotteryDrawTurntableDetail(params) {
  return await React.$get("/market/api/b/lotteryDrawTurntable/getLotteryDrawTurntableDetail",params)
}

//中奖记录
export async function apiGetWinningRecordsPage(params) {
  return await React.$postJson("/market/api/b/LotteryDrawRecords/getWinningRecordsPage", params)
}

// 参与用户
export async function apiGetParticipatingUserPage(params) {
  return await React.$postJson("/market/api/b/participatingUsers/getParticipatingUserPage", params)
}
// 封禁、解封 用户
export async function apiBlockParticipatingUser(params) {
  return await React.$postJson("/market/api/b/participatingUsers/blockOrUnblockingParticipatingUser", params)
}
// 用户封禁记录
export async function apiGetUserBlockRecords(params) {
  return await React.$post("/market/api/b/participatingUsers/getUserBlockRecords", params)
}
// 实物记录分页
// 后台清悦
export async function apiPhysicalExchangeRecordsPage(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/physicalExchangeRecordsPage", params)
}

// 查询抽奖活动（近一年）
export async function apiGetLotteryDrawTurntables(params) {
  return await React.$post("/market/api/b/lotteryDrawTurntable/getLotteryDrawTurntables", params)
}
// 合并实物记录校验
export async function apiMergePhysicalRecordChecks(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/mergePhysicalRecordChecks", params)
}
// 一键合并实物记录
export async function apiConsolidatePhysicalRecords(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/consolidatePhysicalRecords", params)
}
// 已合并订单分页
export async function apiConsolidatedOrdersPage(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/consolidatedOrdersPage", params)
}
// 已合并订单详情分页
export async function apiConsolidatedOrdersDetailPage(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/consolidatedOrdersDetailPage", params)
}
// 查看实物记录详情
export async function apiGetPhysicalRecordDetails(params) {
  return await React.$post("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/getPhysicalRecordDetails", params)
}
// 合并组库存校验
export async function apiMergeGroupInventoryValidation(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/mergeGroupInventoryValidation", params)
}
// 一键推送实物记录
export async function apiPushPhysicalRecords(params) {
  return await React.$postJson("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/pushPhysicalRecords", params)
}
// 查询是否推送中
export async function apiCheckWhetherPushBeing(params) {
  return await React.$post("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/checkWhetherPushBeing", params)
}
// 未推送订单统计
export async function apiUnPushedOrderStatistics(params) {
  return await React.$post("/market/api/b/ldLotteryDrawPhysicalExchangeRecords/unPushedOrderStatistics", params)
}

// 抽奖模板列表
export async function apiFindLotteryDrawTurntableSweepstakes(params) {
  return await React.$post('/market/api/b/lotteryDrawTurntable/findLotteryDrawTurntableSweepstakes', params)
}

// 抽奖模板详情
export async function apiFindLotteryDrawTurntableSweepstakesDetail(params) {
  return await React.$get('/market/api/b/lotteryDrawTurntable/findLotteryDrawTurntableSweepstakesDetail', params)
}
